export default class Page<T> {
  // data: Array<T>;
  data: any;
  code: number;
  pageNumber?: number;
  pageSize?: number;
  // pageCount?: number;
  total?: number;

  constructor(
    // data: Array<T>,
    data: any,
    code: number,
    pageNumber?: number,
    pageSize?: number,
    total?: number,

  ) {
    this.pageNumber = pageNumber;
    this.pageSize = pageSize;
    this.total = total;
    this.data = data;
    this.code = code;
    // this.pageCount = Math.ceil(total / pageSize);
  }
}